<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="admin/updateAdditionalCategories.htm" id="form" theme="simple" method="post">
	<table width="100%">
		<tr>
        	<td height="40" class="sectionheading bottom-border">Additional Categories Fees</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the Additional Categoies setting. Use only digits and
				the decimal point or comma.
				<br>
				<br>
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="Textfiled-border">
					<tbody>
						<tr align="center" bgcolor="#f0f0e1" height="32">
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								&nbsp;
								<b>#</b>&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Feature</b>
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Auction</b>
								<br>
								(total)
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Fixed Price</b>
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Shop</b>
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Wanted</b>
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
								<b>Advertisement</b>
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9" class="verdana12darkgreybold">
								<b>Company Profile</b>
								<br>
								(per month)
							</td>
						</tr>

					<s:iterator value="additionalCategoriesList" status="rowstatus">
						<s:hidden name="additionalCategoriesMap[%{id}].id" value="%{id}" />
						<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
						<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

						<s:if test="#rowstatus.even">
							<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
							<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
						</s:if>

						<tr>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								&nbsp;
								<b><s:property value="%{#rowstatus.index + 1}" /></b>&nbsp;
							</td>
							<td align="left" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<b><s:text name="additionalCategoriesMap[%{id}].feature" /><s:hidden name="additionalCategoriesMap[%{id}].feature" value="%{feature}" />:</b>
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].auction" value="%{auction}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].fixedPrice" value="%{fixedPrice}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].shop" value="%{shop}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>
							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].wanted" value="%{wanted}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>

							<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].advertisement" value="%{advertisement}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>
							<td align="center" class="verdana12Greybold" bgcolor="<s:property value="%{bgColor}" />">
								<s:textfield theme="simple" cssClass="%{classCSS}" name="additionalCategoriesMap[%{id}].companyProfile" value="%{companyProfile}" size="5" />
								&nbsp;&nbsp;&nbsp;
							</td>
						</tr>
					</s:iterator>

					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:submit theme="simple" type="image"
					src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();"
					style="cursor: pointer;" src="../Admin-Images/reset-button.gif"
					alt="Cancel" />
				<img onclick="history.go(-1);" style="cursor: pointer;"
					src="../Admin-Images/cancel_btn.gif" alt="Cancel" />
			</td>
		</tr>
	</table>
</s:form>